package cn.zhentao.charge.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 条件规则对象 coupon_condition
 *
 * @author ruoyi
 * @date 2025-05-15
 */
public class CouponCondition extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 表主键id */
    private Integer id;

    /** 条件 0满200 1满300  2满500 */
    @Excel(name = "条件 0满200 1满300  2满500")
    private Integer conditions;

    /** 面值 */
    @Excel(name = "面值")
    private BigDecimal faceValue;

    /** 类型 0满减 1折扣 2直减 */
    @Excel(name = "类型 0满减 1折扣 2直减")
    private Integer type;

    public void setId(Integer id)
    {
        this.id = id;
    }

    public Integer getId()
    {
        return id;
    }

    public void setCondition(Integer conditions)
    {
        this.conditions = conditions;
    }

    public Integer getCondition()
    {
        return conditions;
    }

    public void setFaceValue(BigDecimal faceValue)
    {
        this.faceValue = faceValue;
    }

    public BigDecimal getFaceValue()
    {
        return faceValue;
    }

    public void setType(Integer type)
    {
        this.type = type;
    }

    public Integer getType()
    {
        return type;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("condition", getCondition())
            .append("faceValue", getFaceValue())
            .append("type", getType())
            .append("createTime", getCreateTime())
            .toString();
    }
}
